package com.yunhe.policyfulfillment.policyful.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunhe.policyfulfillment.policyful.domain.Annex;
import com.yunhe.policyfulfillment.policyful.domain.AppealProcess;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: AppealView
 * @Description:
 * @author: GongDaCheng
 * @Date: 16:28 2021/8/26
 */
@Data
@ApiModel("后台查看诉求模型")
public class AppealView implements Serializable {

    private static final long serialVersionUID = 8231331808848054965L;

    /**诉求信息*/

    @ApiModelProperty("诉求类型")
    private String appealType;

    @ApiModelProperty("诉求类别")
    private String appealCategory;

    @ApiModelProperty("诉求标题")
    private String appealTitle;

    @ApiModelProperty("诉求人")
    private String appealPersonName;

    @ApiModelProperty("诉求人联系方式")
    private String appealPersonContact;

    @ApiModelProperty("诉求内容")
    private String appealContent;

    @ApiModelProperty("附件")
    private List<Annex> annexList;

    @ApiModelProperty("提交时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date submitTime;

    /**历史处理信息*/
    @ApiModelProperty("历史处理信息")
    private List<AppealProcess> appealProcessList;

    @ApiModelProperty("是否公开")
    private String isPublic;

    @ApiModelProperty("办理状态")
    private String handleState;
}
